package top.chmin.project.cloud.sys.table.info;
import org.springframework.stereotype.Component;
import top.chmin.project.cloud.common.Column;
import top.chmin.project.cloud.common.ModelColumn;

import java.util.Arrays;



/**
 * chmin
 * 2024-01-25 14:19:37
 * cloud-code
 */
@Component
public class TableInfoColumn implements ModelColumn {
    public static final String id = "id";
    /*###########auto#start###########*/
    public static final String prefix = "prefix";
    public static final String tableCode = "table_code";
    public static final String tableComment = "table_comment";
    public static final String tableName = "table_name";
    /*###########auto##end############*/
    /* append $columnFieldAppender$ */
    public static final String createBy = "create_by";
    public static final String updateBy = "update_by";
    public static final String createTime = "create_time";
    public static final String updateTime = "update_time";

    public TableInfoColumn() {
        modelColumnMap.put(TableInfo.class, Arrays.asList(
                new Column(id),
                /*###########auto#start###########*/
                new Column(prefix),
                new Column(tableCode),
                new Column(tableComment),
                new Column(tableName),
                /*###########auto##end############*/
                /* append $columnColumnAppender$ */
                new Column(createBy),
                new Column(updateBy),
                new Column(createTime),
                new Column(updateTime)
        ));
    }
}
